<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{$title}</title>
<include file='web/common:source'/>
<style>
div.layui-layer-shade{background-color:rgba(255,255,255,0) !important;}
div.layui-layer-rim{border:none; box-shadow:3px 5px 6px #dadada,-3px -1px 6px #dadada;}
div.layui-layer-title{background-color:#e2e5e8;}
</style>
</head>
<body ng-app="myApp" ng-controller="myAppControl">
<div class="mainBox m o">
    <div class="mainRight fr" style="padding-bottom:0px;">
        <include file='web/common:header'/>
        <div class="mainRightBot pr o">
            <!-- leftMenu start -->
            <include file='web/common:left'/>
            <!-- leftMenu end -->
            <div class="rightBox fr" style="width:940px; min-height:900px;">
                <!-- rightBoxTop start -->
                <include file='web/project:common'/>
                <!-- rightBoxTop end -->
                <div class="rightBoxBot"> 
                    <if condition="count($data['list']) gt 0">
                        <div class="onProject ab">                     
                            <foreach name="data['list']" item="vo">
                                <if condition="$_GET['status'] eq 1">
                                    <a href="{:U('Project/detail',array(id=>$vo['id'],status=>1))}">
                                <else/>
                                    <a href="{:U('Project/detail',array(id=>$vo['id']))}">
                                </if>                                
                                    <h3><span class="title ts300">{$vo.name}</span><span class="time">{$vo.created_at}</span></h3> 
                                    <span class="line b palb ts300"></span>
                                    <span class="rightBot part ts300 b"></span>
                                </a>
                            </foreach>
                        </div>                    
                        <div id="pageNext" class="m Pagination" style="width:766px; padding:20px 0px 50px;">
                            {$data['show']}
                        </div>
                    <else/>                 
                        <div class="noProject tc">
                            <img src="__ROOT__/static/web/images/img5.png" alt="">
                            <h3>你还没有进行中的项目哦</h3>
                            <h4>您可以查看其它管理</h4>
                            <a href="javascript:;" onclick="createXiangmu()" class='b'>新建项目</a>
                        </div>
                    </if> 
                </div>               
                <!-- 新建订单 弹出层 start -->
                <include file='web/common:createDingdan'/>
                <!-- 新建订单 弹出层 end -->
                <!-- 新建项目 弹出层 新建项目 start -->
                <include file='web/common:createProject'/>
                <!-- 新建项目 弹出层 end -->
                <!-- 新建合同 弹出层 start -->
                <include file='web/common:createHetong'/>
                <!-- 新建合同 弹出层 end -->
            </div>
        </div>
    </div>
</div>
</body>
<include file='web/common:footer'/>
<script type="text/javascript">
// angular start
var locationUrl = "{:U('Project/index')}"; 
angular.module("myApp",[]).controller('myAppControl',['$scope',function($scope){
    $scope.searchStr = null;
    $scope.locationUrl = locationUrl; 
    $scope.$watch('searchStr',function(oStr){
        $scope.searchStr = oStr;
    });
    $scope.searchBtn = function(){
        if($scope.searchStr == "" || $scope.searchStr == null){return false;};
        $scope.locationUrl += "/search/"+$scope.searchStr;
        location.href = $scope.locationUrl;
    };
}]);
function selectPerson(){   
    layer.open({
        type: 1,
        title: ['项目人员列表', 'font-size:18px;'],
        skin: 'layui-layer-rim', //加上边框
        area: ['770px', '650px'], //宽高
        content: $("#shadowBox")
    });
};
$("ul.hetongAdd>li>a.reyuanList").click(function(){
    
});
</script>
</html>